# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-usage
pkgver=3.32.0
pkgrel=2
pkgdesc="System resources status"
url="https://wiki.gnome.org/Apps/Usage"
arch="all"
license="GPL-3.0-or-later"
makedepends="meson glib-dev gtk+3.0-dev libdazzle-dev libgtop-dev vala"
options="!check" # no tests
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-usage/${pkgver%.*}/gnome-usage-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="c1ed3ab8fcdb039bc05f4b091a7ac8c032b7f7847f77bff79c89a57d5c0075f712228c752674e0c61f63a1adaea911304de5a1cdd1c342c74abea6e48defee88  gnome-usage-3.32.0.tar.xz"
